package day01.日期类.Calendar类;

import java.util.Calendar;

/**
 * @author feng
 * @Date 2022/1/4 10:03
 *  日历
 */
public class Test1 {
    public static void main(String[] args) {
        Calendar c = Calendar.getInstance();
        int month = c.get(Calendar.MONTH) + 1;
        int year = c.get(Calendar.YEAR);
        int day = c.get(Calendar.DAY_OF_MONTH);
        int week = c.get(Calendar.DAY_OF_WEEK) - 1;
        System.out.println(year + " " + month + " " + day + " week:" + week);
        Calendar ca = Calendar.getInstance();

    }
}
